//package com.common.config;
//
//import com.common.util.UDPUtil;
//import com.li.model.MyUDP;
//import com.li.model.MyUDPList;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import java.net.DatagramSocket;
//import java.net.InetSocketAddress;
//import java.net.SocketException;
//import java.util.ArrayList;
//import java.util.List;
//
//@Configuration
//public class UDPlistConfig {
////    @Bean(name = "udpList")
////    public MyUDPList UDPLists(){
////        int port = 8900;
////        List<MyUDP> list = new ArrayList<>(6);
////        for (int i = 0;i<6;i++){
////            try {
////                list.add(new MyUDP(false,new DatagramSocket(new InetSocketAddress(port+i)),port+i));
////            } catch (SocketException e) {
////                e.printStackTrace();
////            }
////        }
////       return new MyUDPList(list);
////
////    }
////    public boolean close(UDPUtil util)
//}
